package HomeWork;

import java.util.Scanner;

/*
        字符串反转
        举例：键盘录入”abc”
        输出结果：”cba”

 */
public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入：");
        String str = sc.nextLine();

        StringBuilder sb = new StringBuilder(str);
        String restr =sb.reverse().toString();
        System.out.println(restr);
    }
}
